﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MemoryIndexNet.Indexes
{
    public abstract class KeyedIndex<TKey, T>
    {
        readonly Func<T, TKey> _keyExtractor;

        public Func<T, TKey> KeyExtractor
        {
            get { return _keyExtractor; }
        }
        
        public KeyedIndex(Func<T, TKey> keyExtractor)
        {
            // TODO: Check for null
            _keyExtractor = keyExtractor;
        }
    }
}
